home *** CD-ROM | disk | FTP | other *** search
/ Disc Station 20 / Disc Station Vol 20.ISO / Drivers / Iodata / Ga98nb / nb151.exe / DISK.EXE / WINNT35 / OEMSETUP.INF < prev    next >
INI File  |  1995-09-18  |  19KB  |  557 lines

  1. ;-----------------------------------------------------------------------
  2. ; Windows NT 3.5 Display Driver for I-O DATA GA-98NB Series
  3. ;-----------------------------------------------------------------------
  4. ; OPTION TYPE
  5. ; -----------
  6. ; This identifies the Option type we are dealing with.  The different
  7. ; possible types are:
  8. ;
  9. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  10. ;-----------------------------------------------------------------------
  11.  
  12. [Identification]
  13.     OptionType = VIDEO
  14.  
  15. ;-----------------------------------------------------------------------
  16. ; LANGUAGES SUPPORTED
  17. ; -------------------
  18. ;
  19. ; The languages supported by the OEM INF, For every language supported
  20. ; we need to have a separate text section for every displayable text
  21. ; section.
  22. ;
  23. ;-----------------------------------------------------------------------
  24.  
  25. [LanguagesSupported]
  26.     ENG
  27.  
  28. ;-----------------------------------------------------------------------
  29. ; OPTION LIST
  30. ; -----------
  31. ; This section lists the OEM Option key names.  These keys are locale
  32. ; independent and used to represent the option in a locale independent
  33. ; manner.
  34. ;
  35. ;-----------------------------------------------------------------------
  36.  
  37. ;
  38. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  39. ;
  40. ; If you don't want to create a VRefresh or Interlaced value under the service
  41. ; parameters then use the value ""
  42. ;
  43.  
  44. [Options]
  45.     "I-O DATA  GA-98NB Series    "   = nb,  8, 640,  480, 60, 0
  46.  
  47. ;
  48. ; This maps detected options into the options we support
  49. ;
  50. ; Format: DetectedOption = MappedOption
  51. ;
  52.  
  53. [MapOfOptions]
  54.     "PC-98/H98 N_MODE"             = "PC-98/H98     N  640x 400x4"
  55.     "PC-98/H98 H_MODE"             = "PC-98/H98     H 1120x 750x4"
  56.  
  57.  
  58. ;
  59. ; Order of the information:
  60. ;
  61. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  62. ;
  63.  
  64. [MiniportDrivers]
  65.     nb = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11, {nb256,nb64k,nb16m}, 0, %SystemRoot%\System32\IoLogMsg.dll , 7
  66.  
  67.  
  68. ;-----------------------------------------------------------------------
  69. ; OPTION TEXT SECTION
  70. ; -------------------
  71. ; These are text strings used to identify the option to the user.  There
  72. ; are separate sections for each language supported.  The format of the
  73. ; section name is "OptionsText" concatenated with the Language represented
  74. ; by the section.
  75. ;
  76. ;-----------------------------------------------------------------------
  77.  
  78. [OptionsTextENG]
  79.     "I-O DATA  GA-98NB Series    "   =  "▒▓Ñ╡░Ñ├▐░└  GA-98NB ╝╪░╜▐ "
  80.  
  81.  
  82.  
  83. ;---------------------------------------------------------------------------
  84. ; 1. Identify
  85. ;
  86. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  87. ;                as we are choosing currently.
  88. ;
  89. ; INPUT:         None
  90. ;
  91. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  92. ;                $($R1): Option Type (COMPUTER ...)
  93. ;                $($R2): Diskette description
  94. ;---------------------------------------------------------------------------
  95.  
  96. [Identify]
  97.     ;
  98.     ;
  99.     read-syms Identification
  100.  
  101.     set Status     = STATUS_SUCCESSFUL
  102.     set Identifier = $(OptionType)
  103.     set Media      = #("Source Media Descriptions", 1, 1)
  104.  
  105.     Return $(Status) $(Identifier) $(Media)
  106.  
  107.  
  108.  
  109. ;------------------------------------------------------------------------
  110. ; 2. ReturnOptions:
  111. ;
  112. ; DESCRIPTION:   To return the option list supported by this INF and the
  113. ;                localised text list representing the options.
  114. ;
  115. ;
  116. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  117. ;
  118. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  119. ;                                STATUS_NOLANGUAGE
  120. ;                                STATUS_FAILED
  121. ;
  122. ;                $($R1): Option List
  123. ;                $($R2): Option Text List
  124. ;------------------------------------------------------------------------
  125.  
  126. [ReturnOptions]
  127.     ;
  128.     ;
  129.     set Status        = STATUS_FAILED
  130.     set OptionList     = {}
  131.     set OptionTextList = {}
  132.  
  133.     ;
  134.     ; Check if the language requested is supported
  135.     ;
  136.     set LanguageList = ^(LanguagesSupported, 1)
  137.     Ifcontains(i) $($0) in $(LanguageList)
  138.         goto returnoptions
  139.     else
  140.         set Status = STATUS_NOLANGUAGE
  141.         goto finish_ReturnOptions
  142.     endif
  143.  
  144.     ;
  145.     ; form a list of all the options and another of the text representing
  146.     ;
  147.  
  148. returnoptions = +
  149.     set OptionList     = ^(Options, 0)
  150.     set OptionTextList = ^(OptionsText$($0), 1)
  151.     set Status         = STATUS_SUCCESSFUL
  152.  
  153. finish_ReturnOptions = +
  154.     Return $(Status) $(OptionList) $(OptionTextList)
  155.  
  156.  
  157.  
  158. ;---------------------------------------------------------------------------
  159. ; MapToSupportedOption
  160. ;
  161. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  162. ;                option which represents it.
  163. ;
  164. ; INPUT:         $($0): Option
  165. ;
  166. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  167. ;                $($R1): Mapped Option
  168. ;
  169. ;---------------------------------------------------------------------------
  170.  
  171. [MapToSupportedOption]
  172.     ;
  173.     set Status = STATUS_FAILED
  174.     set MappedOption = $($0)
  175.  
  176.     ;
  177.     ; If the option is one we can support using one of our standard options
  178.     ; then map it to the standard option else map it to the default option
  179.     ; which is VGA.
  180.     ;
  181.  
  182.     set OptionList = ^(MapOfOptions, 0)
  183.     ifcontains $($0) in $(OptionList)
  184.         set MappedOption = #(MapOfOptions, $($0), 1)
  185.     else
  186.         set MappedOption = "VGA"
  187.     endif
  188.  
  189.     set Status = STATUS_SUCCESSFUL
  190.     Return $(Status) $(MappedOption)
  191.  
  192.  
  193.  
  194. [ServicesEntry]
  195.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  196.  
  197.  
  198. ;
  199. ; InstallOption:
  200. ;
  201. ; FUNCTION:  To copy files representing Options
  202. ;            To configure the installed option
  203. ;            To update the registry for the installed option
  204. ;
  205. ; INPUT:     $($0):  Language to use
  206. ;            $($1):  OptionID to install
  207. ;            $($2):  SourceDirectory
  208. ;            $($3):  AddCopy  (YES | NO)
  209. ;            $($4):  DoCopy   (YES | NO)
  210. ;            $($5):  DoConfig (YES | NO)
  211. ;
  212. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  213. ;                            STATUS_NOLANGUAGE |
  214. ;                            STATUS_USERCANCEL |
  215. ;                            STATUS_FAILED
  216. ;
  217.  
  218. [InstallOption]
  219.  
  220.     ;
  221.     ; Set default values for
  222.     ;
  223.     set Status       = STATUS_FAILED
  224.     set DrivesToFree = {}
  225.  
  226.     ;
  227.     ; extract parameters
  228.     ;
  229.     set Option   = $($1)
  230.     set SrcDir   = $($2)
  231.     set AddCopy  = $($3)
  232.     set DoCopy   = $($4)
  233.     set DoConfig = $($5)
  234.  
  235.     ;
  236.     ; Check if the language requested is supported
  237.     ;
  238.     set LanguageList = ^(LanguagesSupported, 1)
  239.     Ifcontains(i) $($0) in $(LanguageList)
  240.     else
  241.         set Status = STATUS_NOLANGUAGE
  242.         goto finish_InstallOption
  243.     endif
  244.     read-syms Strings$($0)
  245.  
  246.     ;
  247.     ; check to see if Option is supported.
  248.     ;
  249.  
  250.     set OptionList = ^(Options, 0)
  251.     ifcontains $(Option) in $(OptionList)
  252.     else
  253.         goto finish_InstallOption
  254.     endif
  255.     set OptionList = ""
  256.  
  257.     ;
  258.     ; Option has been defined already
  259.     ;
  260.     set MiniportDriver    = #(Options, $(Option), 1)
  261.     set BitsPerPel        = #(Options, $(Option), 2)
  262.     set XResolution       = #(Options, $(Option), 3)
  263.     set YResolution       = #(Options, $(Option), 4)
  264.     set VRefresh          = #(Options, $(Option), 5)
  265.     set Interlaced        = #(Options, $(Option), 6)
  266.  
  267.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  268.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  269.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  270.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  271.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  272.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  273.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  274.